package com.bledanliaar;

import java.util.ArrayList;
import java.util.List;


/**
 * Created by My on 2017/4/27.
 */

public class Constant {
    final String proteinInitialValueKEY = "proteinInitialValue";//蛋白质初始值KEY
    final String fatInitialValueKEY = "fatInitialValue";//脂肪初始值KEY
    final String lactoseInitialValueKEY = "lactoseInitialValue";//乳糖初始值初始值KEY
    final String densityInitialValueKEY = "densityInitialValue";//密度初始值KEY
    final String mineralsInitialValueKEY = "mineralsInitialValue";//矿物质初始值KEY


    String proteinInitialValue = "{\"A\":\"6.2928\",\"B\":\"-8.0231\",\"C\":\"4.3294\",\"D\":\"-0.0342\",\"E\":\"0\"}"; //蛋白质初始值
    String fatInitialValue = "{\"A\":\"-1.5248\",\"B\":\"7.7053\",\"C\":\"-3.5725\",\"D\":\"2.405\",\"E\":\"0\"}"; //脂肪初始值
    String lactoseInitialValue = "{\"A\":\"209.1\",\"B\":\"-136.15\",\"C\":\"28.42\",\"D\":\"2.1422\",\"E\":\"0\"}"; //乳糖初始值
    String densityInitialValue = "{\"A\":\"0.0065\",\"B\":\"0.0383\",\"C\":\"-0.0156\",\"D\":\"0.0187\",\"E\":\"1.0001\"}"; //密度初始值
    String mineralsInitialValue = "{\"A\":\"6.6231\",\"B\":\"-4.312\",\"C\":\"0.9002\",\"D\":\"0.0679\",\"E\":\"0\"}"; //矿物质初始值

    final String proteinMilkCoefficientKEY = "proteinMilkCoefficient";////蛋白质纯牛奶系数KEY
    final String fatMilkCoefficientKEY = "fatMilkCoefficient";//脂肪纯牛奶系数KEY
    final String lactoseMilkCoefficientKEY = "lactoseMilkCoefficient";//乳糖纯牛奶系数KEY
    final String densityMilkCoefficientKEY = "densityMilkCoefficient";//密度纯牛奶系数KEY
    final String mineralsMilkCoefficientKEY = "mineralsMilkCoefficient";//矿物质纯牛奶系数KEY


    String proteinMilkCoefficient = "{\"A\":\"2.66\",\"B\":\"0.5193\",\"C\":\"-0.2841\",\"D\":\"1.0549\",\"E\":\"0\"}"; //蛋白质纯牛奶系数
    String fatMilkCoefficient = "{\"A\":\"21.317\",\"B\":\"-21.608\",\"C\":\"10.134\",\"D\":\"0.0304\",\"E\":\"0\"}"; //脂肪纯牛奶系数
    String lactoseMilkCoefficient = "{\"A\":\"317.02\",\"B\":\"-261.06\",\"C\":\"76.102\",\"D\":\"-1.4059\",\"E\":\"0\"}"; //乳糖纯牛奶系数
    String densityMilkCoefficient = "{\"A\":\"0.0607\",\"B\":\"0.0158\",\"C\":\"0.0065\",\"D\":\"0.0276\",\"E\":\"1.0001\"}"; //密度纯牛奶系数
    String mineralsMilkCoefficient = "{\"A\":\"8.0896\",\"B\":\"-6.7544\",\"C\":\"2.0649\",\"D\":\"-0.0864\",\"E\":\"0\"}"; //矿物质纯牛奶系数

    final String proteinYOTCoefficientKEY = "proteinYOTCoefficient";////蛋白质亚奥特系数KEY
    final String fatYOTCoefficientKEY = "fatYOTCoefficientt";//脂肪亚奥特系数KEY
    final String lactoseYOTCoefficientKEY = "lactoseYOTCoefficient";//乳糖亚奥特系数KEY
    final String densityYOTCoefficientKEY = "densityYOTCoefficient";//密度亚奥特系数KEY
    final String mineralsYOTCoefficientKEY = "mineralsYOTCoefficient";//矿物质亚奥特系数KEY

    String proteinYOTCoefficient = "{\"A\":\"-1.3382\",\"B\":\"3.0276\",\"C\":\"-1.2693\",\"D\":\"0.7041\",\"E\":\"0\"}";//蛋白质亚奥特系数
    String fatYOTCoefficient = "{\"A\":\"3.7522\",\"B\":\"-5.2418\",\"C\":\"5.6451\",\"D\":\"0.8592\",\"E\":\"0\"}";//脂肪亚奥特系数
    String lactoseYOTCoefficient = "{\"A\":\"8.7633\",\"B\":\"28.979\",\"C\":\"-19.631\",\"D\":\"5.2669\",\"E\":\"0\"}";//乳糖亚奥特系数
    String densityYOTCoefficient = "{\"A\":\"-0.0165\",\"B\":\"0.0378\",\"C\":\"-0.0023\",\"D\":\"0.0151\",\"E\":\"1.0001\"}";//密度亚奥特系数
    String mineralsYOTCoefficient = "{\"A\":\"-0.1642\",\"B\":\"1.2854\",\"C\":\"-0.7248\",\"D\":\"0.1437\",\"E\":\"0\"}";//矿物质亚奥特系数


    /**
     *母乳范围值
     */
    public List<MuruProjectBean> initMuru(){
        List<MuruProjectBean> list=new ArrayList<>();
        MuruProjectBean mrCr=new MuruProjectBean();
        mrCr.setId(0);
        mrCr.setBeanName("初乳");
        mrCr.setZfsx(4.38);
        mrCr.setZfxx(0.9);
        mrCr.setRtsx(8.89);
        mrCr.setRtxx(6.51);
        mrCr.setDbzsx(1.76);
        mrCr.setDbzxx(0.92);
        mrCr.setMdsx(1.039);
        mrCr.setMdxx(1.027);
        mrCr.setKwzsx(0.28);
        mrCr.setKwzxx(0.16);
        mrCr.setSfsx(91.72);
        mrCr.setSfxx(86.53);
        mrCr.setNlsx(87.69);
        mrCr.setNlxx(45.18);
        list.add(mrCr);

        mrCr=new MuruProjectBean();
        mrCr.setId(1);
        mrCr.setBeanName("过渡乳");
        mrCr.setZfsx(4.94);
        mrCr.setZfxx(1.35);
        mrCr.setRtsx(8.40);
        mrCr.setRtxx(6.31);
        mrCr.setDbzsx(1.53);
        mrCr.setDbzxx(0.84);
        mrCr.setMdsx(1.036);
        mrCr.setMdxx(1.025);
        mrCr.setKwzsx(0.27);
        mrCr.setKwzxx(0.16);
        mrCr.setSfsx(91.11);
        mrCr.setSfxx(85.77);
        mrCr.setNlsx(88.60);
        mrCr.setNlxx(44.84);
        list.add(mrCr);

        mrCr=new MuruProjectBean();
        mrCr.setId(2);
        mrCr.setBeanName("成熟乳");
        mrCr.setZfsx(5.50);
        mrCr.setZfxx(1.80);
        mrCr.setRtsx(7.90);
        mrCr.setRtxx(6.10);
        mrCr.setDbzsx(1.30);
        mrCr.setDbzxx(0.75);
        mrCr.setMdsx(1.033);
        mrCr.setMdxx(1.023);
        mrCr.setKwzsx(0.25);
        mrCr.setKwzxx(0.15);
        mrCr.setSfsx(90.50);
        mrCr.setSfxx(85.00);
        mrCr.setNlsx(89.50);
        mrCr.setNlxx(44.50);
        list.add(mrCr);

        mrCr=new MuruProjectBean();
        mrCr.setId(3);
        mrCr.setBeanName("晚乳");
        mrCr.setZfsx(5.50);
        mrCr.setZfxx(1.80);
        mrCr.setRtsx(7.90);
        mrCr.setRtxx(6.10);
        mrCr.setDbzsx(1.30);
        mrCr.setDbzxx(0.75);
        mrCr.setMdsx(1.033);
        mrCr.setMdxx(1.023);
        mrCr.setKwzsx(0.25);
        mrCr.setKwzxx(0.15);
        mrCr.setSfsx(90.50);
        mrCr.setSfxx(85.00);
        mrCr.setNlsx(89.50);
        mrCr.setNlxx(44.50);
        list.add(mrCr);
        return list;
    }
}
